//
//  DYHomeFunctionCell.m
//  DaYing
//
//  Created by DaYing Team on 2023.
//  Copyright © 2023 DaYing Team. All rights reserved.
//

#import "DYHomeFunctionCell.h"

@implementation DYHomeFunctionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [_myButtons enumerateObjectsUsingBlock:^(UIButton *button, NSUInteger idx, BOOL * _Nonnull stop) {
        button.adjustsImageWhenHighlighted = NO;
    }];
}

- (void)setData:(id)data delegate:(id)delegate {
    _delegate = delegate;
}

- (IBAction)buttonAction:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(homeFunctionCell:button:)]) {
        [_delegate homeFunctionCell:self button:sender];
    }
}

@end
